﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using pyystone;

namespace WindowsFormsApplication1.form
{
    public partial class HtmlToolsTestForm : Form
    {
        public HtmlToolsTestForm()
        {
            InitializeComponent();
        }

        private void btnLoadRes_Click(object sender, EventArgs e)
        {
            var url = tbTestUrl.Text.Trim();
            var htmlCode = HtmlTools.DownHtmlPage(url);

            var ress = HtmlTools.getPageAllRes(htmlCode, "http://www.oschina.net");
            foreach (var s in ress)
            {
                HtmlTools.DownHtmlPage(s);
            }

        }
    }
}
